void f( char *p )
{
    char *start = p;
    char *end = p;
    char temp;

    while (*end != '\0') {
        end++;
    }
    end--; 
    while (start < end) {
        temp = *start;
        *start = *end;
        *end = temp;
        start++;
        end--;
    }
}
